<nav id="sidebar">
    <button class="backColor" onclick="window.scrollTo({
        top: 0,
        behavior: 'smooth'
    })">
        <i class="icon-top"></i>
    </button>
    <button class="backColor" onclick="location.href = '/'">
        <i class="icon-home"></i>
    </button>
    <button class="backColor" onclick="document.getElementById('sidebar').classList.add('hide')">
        <i class="icon-close2"></i>
    </button>
    <button class="backColor" onclick="window.scrollTo({
        top: document.documentElement.scrollHeight - document.documentElement.clientHeight,
        behavior: 'smooth'
    })">
        <i class="icon-bottom"></i>
    </button>
</nav>